const wx2my = require('../wx2my');

module.exports = {
  year() {
    return 0;
  },

  get_arr(num, str, flag) {
    let arr = [];

    for (let i = 0; i <= num; i++) {
      if (flag == 1) {
        if (i > 0) {
          arr.push({
            num: i,
            name: str + i + '层'
          });
        }
      } else if (flag == 2) {
        if (i > 0) {
          arr.push({
            num: i,
            name: i + str
          });
        }
      } else {
        arr.push({
          num: i,
          name: i + str
        });
      }
    }

    return arr;
  }

};